package com.coc.entity.system;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * (SysPermission)表实体类
 *
 * @author songju
 * @since 2020-02-11 17:21:34
 */
@SuppressWarnings("serial")
public class SysPermission extends Model<SysPermission> {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    //菜单名称
    private String name;
    //父菜单id
    private Integer pid;
    //菜单排序
    private Integer zindex;
    //权限分类（0 菜单；1 功能）
    private Integer istype;
    //描述
    private String descpt;
    //菜单编号
    private String code;
    //菜单图标名称
    private String icon;
    //菜单url
    private String page;
    //添加时间
    private Date insertTime;
    //更新时间
    private Date updateTime;
    @TableField(exist = false)
    private String RoleIds;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Integer getZindex() {
        return zindex;
    }

    public void setZindex(Integer zindex) {
        this.zindex = zindex;
    }

    public Integer getIstype() {
        return istype;
    }

    public void setIstype(Integer istype) {
        this.istype = istype;
    }

    public String getDescpt() {
        return descpt;
    }

    public void setDescpt(String descpt) {
        this.descpt = descpt;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getPage() {
        return page;
    }

    public void setPage(String page) {
        this.page = page;
    }

    public Date getInsertTime() {
        return insertTime;
    }

    public void setInsertTime(Date insertTime) {
        this.insertTime = insertTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getRoleIds() {
        return RoleIds;
    }

    public void setRoleIds(String roleIds) {
        RoleIds = roleIds;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    }